import java.util.Scanner;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/6/8
 * Time:19:48
 **/
public class Main1 {
    /**
     * 每日一题-骆驼式命名
     *
     * @param args
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String str = sc.nextLine();
            char[] ch = str.toCharArray();
            for (int i = 0; i < str.length(); i++) {
                while (ch[i] == '_') {
                    i++;
                    if (ch[i] >= 'a' && ch[i] <= 'z') {
                        ch[i] -= 32;
                    }
                }
            }
            StringBuilder s = new StringBuilder();
            for (int i = 0; i < ch.length; i++) {
                if ((ch[i] >= 'a' && ch[i] <= 'z') || ch[i] >= 'A' && ch[i] <= 'Z') {
                    s.append(ch[i]);
                }
            }
            System.out.println(s);
        }
    }
}
